package sphere.model;

public class Sphere
{
	private double radius;
	private double surface;
	private double volume;
	
	private static final double pi=Math.PI;

	public Sphere(double radius) {
		super();
		this.radius = radius;
		this.surface = calculSurface();
		this.volume = calculVolume();
	}

	public double getRayon()
	{
		return radius;
	}

	public void setRayon(double radius)
	{
		this.radius = radius;
	}

	public double getSurface()
	{
		return surface;
	}

	public void setSurface(double surface)
	{
		this.surface = surface;
	}

	public double getVolume()
	{
		return volume;
	}

	public void setVolume(double volume)
	{
		this.volume = volume;
	}

	public static double getPi()
	{
		return pi;
	}
	
	public double calculSurface(){
		double calcul=(4*pi*Math.pow(this.radius, 2));
		return calcul;
	}
	
	public double calculVolume(){
		double calcul=(4*pi*Math.pow(this.radius, 3))/3;
		return calcul;
	}
} 